package com.nami.message.acl.repository.phismsgs.convertor;


import com.nami.message.domain.model.pmsg.PChatMsgModel;
import com.nami.message.core.mybatis.dataobject.PrivateHisMsgsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PrivateHisMsgsConvert {

    PrivateHisMsgsConvert INSTANCE = Mappers.getMapper(PrivateHisMsgsConvert.class);

    PrivateHisMsgsDO convert(PChatMsgModel user);

    List<PrivateHisMsgsDO> convertList(List<PChatMsgModel> users);

}
